import { createApp } from 'vue'
import '../src/styles/common.scss'
import App from './App.vue'
import router from '@/router/index.ts'
import {createPinia} from "pinia";
import {lazyPlugin} from '@/directives/imageLazy.ts'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';
import "element-plus/theme-chalk/el-message-box.css";
import '@imengyu/vue3-context-menu/lib/vue3-context-menu.css';
import ContextMenu from '@imengyu/vue3-context-menu';
// element 国际化配置，这里是配置为简体中文
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import ElementPlus from 'element-plus'



const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)
createApp(App)
    .use(router)
    .use(pinia)
    .use(lazyPlugin)
    .use(ContextMenu)
    // 配置element组件为简体中文模式
    .use(ElementPlus, {
        locale: zhCn,
    })
    .mount('#app')
